﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace T4MVCGen.Core
{

   public  enum DatabaseType { SQLServer, MySql }

    public class DbFactory
    {

        public static IDbHelper GetDbHelper(DatabaseType dbType)
        {
            switch (dbType)
            {
                case DatabaseType.SQLServer:
                    return new SqlDbHelper();
                    break;
                case DatabaseType.MySql:
                    return new MySqlDbHelper();
                    break;
                default:
                    return null;
                    break;
            }
        }
    }
}
